package com.linkage.book.pojo;

public class Book {
	
	/**
	 * create table book
		(
		   bookid               int(10) not null,
		   categoryid           int(10),
		   bookname             varchar(200) not null,
		   author               varchar(50) not null,
		   price                decimal(8,2),
		   press                varchar(100),
		   publishtime          char(10),
		   edition              int(11),
		   pageNum              int(11),
		   image_w              varchar(100),
		   image_b              varchar(100),
		   reserve              int(10) not null,
		   score                int,
		   primary key (bookid)
		);
	 */
	
	private int bookId;
	private int categoryId;
	private String bookName;
	private String author;
	private double price;
	private String press;
	private String publishTime;
	private int edition;
	private int pageNum;
	private String image_w;
	private String image_b;
	private int reserve;
	private int score;
	public int getBookId() {
		return bookId;
	}
	public void setBookId(int bookId) {
		this.bookId = bookId;
	}
	public int getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getPress() {
		return press;
	}
	public void setPress(String press) {
		this.press = press;
	}
	public String getPublishTime() {
		return publishTime;
	}
	public void setPublishTime(String publishTime) {
		this.publishTime = publishTime;
	}
	public int getEdition() {
		return edition;
	}
	public void setEdition(int edition) {
		this.edition = edition;
	}
	public int getPageNum() {
		return pageNum;
	}
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
	public String getImage_w() {
		return image_w;
	}
	public void setImage_w(String image_w) {
		this.image_w = image_w;
	}
	public String getImage_b() {
		return image_b;
	}
	public void setImage_b(String image_b) {
		this.image_b = image_b;
	}
	public int getReserve() {
		return reserve;
	}
	public void setReserve(int reserve) {
		this.reserve = reserve;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	@Override
	public String toString() {
		return "Book [bookId=" + bookId + ", categoryId=" + categoryId
				+ ", bookName=" + bookName + ", author=" + author + ", price="
				+ price + ", press=" + press + ", publishTime=" + publishTime
				+ ", edition=" + edition + ", pageNum=" + pageNum
				+ ", image_w=" + image_w + ", image_b=" + image_b
				+ ", reserve=" + reserve + ", score=" + score + "]";
	}
	public Book(int bookId, int categoryId, String bookName, String author,
			double price, String press, String publishTime, int edition,
			int pageNum, String image_w, String image_b, int reserve, int score) {
		super();
		this.bookId = bookId;
		this.categoryId = categoryId;
		this.bookName = bookName;
		this.author = author;
		this.price = price;
		this.press = press;
		this.publishTime = publishTime;
		this.edition = edition;
		this.pageNum = pageNum;
		this.image_w = image_w;
		this.image_b = image_b;
		this.reserve = reserve;
		this.score = score;
	}
	public Book() {
		super();
		// TODO Auto-generated constructor stub
	}

}
